const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  /* devServer: {
    proxy: 'http://localhost:5000'
  } */
  devServer: {
    proxy: {
      '/stu': {
        target: 'http://localhost:5000',
        pathRewrite: {
          '^/stu': ''
        },
        ws: true,
        changeOrigin: true
      },
      '/che': {
        target: 'http://localhost:5001',
        pathRewrite: {
          '^/che': ''
        },
        ws: true,
        changeOrigin: true
      }
    }
  }
})
